package com.example.jta_atomikos.mapper.db2;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author wise-wang
 * 2021.12.05
 * 对db2数据持久化操作
 */
@Mapper
public interface OrderDetailMapper {

    @Insert("INSERT INTO orderdetails(id, orderId) VALUES(#{id}, #{orderId})")
    int insert(@Param("id") int id, @Param("orderId") String orderId);
}
